home *** CD-ROM | disk | FTP | other *** search
/ SCI Games E3 2005 Press Kit (USA) / SCI Games E3 2005 Press Kit (USA).bin / runme_mac.swf / scripts / __Packages / mx / controls / streamingmedia / LoudButton.as < prev    next >
Text File  |  2005-05-05  |  701b  |  22 lines

  1. class mx.controls.streamingmedia.LoudButton extends MovieClip
  2. {
  3.    function LoudButton()
  4.    {
  5.       super();
  6.       this.init();
  7.    }
  8.    function init()
  9.    {
  10.       this.attachMovie("SimpleButton","loudSimpleButton",1,{falseUpSkin:"Loud-False-Up",falseOverSkin:"Loud-False-Over",falseDownSkin:"Loud-False-Down",falseDisabledSkin:"Loud-False-Disabled"});
  11.       this.loudSimpleButton.addEventListener("click",this);
  12.       this.loudSimpleButton.enabled = this._parent._parent.enabled;
  13.       this.tabEnabled = false;
  14.       this.tabChildren = true;
  15.    }
  16.    function click(ev)
  17.    {
  18.       this._parent._parent.broadcastEvent("volume",100);
  19.       this._parent.getHandle().setLoud();
  20.    }
  21. }
  22.